import { Injectable, Inject } from "@nestjs/common"

@Injectable()
export class LoggerClassService {
  log(meessage) {
    console.log('LoggerClassService: ', meessage);
    
  }
}
@Injectable()
export class LoggerService {
  constructor(@Inject('SUFFIX') private suffix?: string) {
    console.log('LoggerService: ', this.suffix)
  }
  log(meessage) {
    console.log('LoggerService: ', meessage);
    
  }
}

@Injectable()
export class UseValueService {
  constructor(prefix: string) {
    console.log('UseValueService---', prefix);
  }
  log(message) {
    console.log(`UseValueService: `, message)
  }
}

@Injectable()
export class UseFactory {
  // constructor(private prefix: string, private suffix: string) {
  //   console.log('UseFactory-----', this.prefix, this.suffix)
  // }
  log(message) {
    console.log(`UseFactory: `, message)
  }
}